/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package General;

import java.io.File;
import java.io.Serializable;

/**
 *
 * @author NganNLK60334
 */
public class XMLChecker implements Serializable{

    private String realPath = "";
    private String webPath = "";
    private boolean validFile = false;

    public XMLChecker (){

    }
    /**
     * @return the realPath
     */
    public String getRealPath() {
        return realPath;
    }

    /**
     * @param realPath the realPath to set
     */
    public void setRealPath(String realPath) {
        this.realPath = realPath;
    }

    /**
     * @return the webPath
     */
    public String getWebPath() {
        return webPath;
    }

    /**
     * @param webPath the webPath to set
     */
    public void setWebPath(String webPath) {
        this.webPath = webPath;
    }

    /**
     * @return the validFile
     */
    public boolean isValidFile() {
        File f = new File(realPath + webPath);
        validFile = f.exists();
        return validFile;
    }

    /**
     * @param validFile the validFile to set
     */
    public void setValidFile(boolean validFile) {
        this.validFile = validFile;
    }


}
